const router = require('koa-router')();

//config
const config = require('../config/config');
const commonPageConf = config.commonPageConf;
const err404Conf = config.pageConf.error404;

router.get('/404', async (ctx, next) => {
  
  await ctx.render('err404', {
    commonPageConf,
    pageConf: err404Conf,
    isLogin: ctx.session.userInfo ? true : false,
    curRouter: '/404',
  })
})

module.exports = router;